$(function(){
	
	var stage = $('#stage');
	var owl = $("#owl");
	var owlHead = $("#owlHead");
	var owlBody = $('#owlBody');
	var leftEye = $('#leftEye');
	var rightEye = $('#rightEye');
	var leftWing = $('#leftWing');
	var rightWing = $('#rightWing');
	var leftPupil = $('#leftPupil');
	var rightPupil = $('#rightPupil');

	function init(){
		headbobDown();
		//jumpDown();

	}

	function headbobDown(){
		owlHead.animate(
			{
				top:'50'
			},
			{
				easing: 'linear',
				duration: 500,
				complete: headbobUp
			}	
		)
	}

	function headbobUp(){
		owlHead.animate(
			{
				top:'0'
			},
			{
				easing: 'linear',
				duration: 500,
				//complete: headbobUp
			}	
		)
	}

	/*
	function jumpUp(){
		owl.animate(
			{
				top: '100'
			},
			{
				easing: 'linear',
				duration: 500,
				complete: jumpDown
				
			}

		);
	};

	function jumpDown(){
		owl.animate(
			{
				top: '0'
			},
			{
				easing: 'linear',
				duration: 500,
				//complete: openMouth
				
			}
		);
	};


	function raiseLeftArm(){
		
		andyArmLeft.animate(
			{
				top: '90',
				
			},
			{
				easing: 'linear',
				duration: 500,
				complete: waveLeftArmOut
				
			}
		);
	}

	function waveLeftArmOut (){
		
		andyArmLeft.animate(
			{
				rotate:'-25deg'
			},
			{
				easing: 'linear',
				duration: 500,
				complete: waveLeftArmIn
				
			}
		);
	}

	function waveLeftArmIn (){
		
		andyArmLeft.animate(
			{
				rotate:'0deg'
			},
			{
				easing: 'linear',
				duration: 500,
				complete: waveLeftArmOut
				
			}
		);
	}

*/
	
	init();
});












